import axios from "./axios"

export default {
    // 员工列表
    getEmployeeList: (data) => {
        return axios({
            method: "get",
            url: "admin/getList",
            data
        })
    },
    // 添加员工
    addEmployee: (data) => {
        return axios({
            method: "post",
            url: "admin/admin/add",
            data
        })
    },

    // 删除员工
    deleteEmployee: (id) => {
        return axios({
            method: "delete",
            url: "admin/admin/delete/" + id,
        })
    },
    // ***************************************************************
    // 消息列表
    getMessageList: (data) => {
        return axios({
            method: "get",
            url: "message/getMessage",
            data
        })
    },

    // 客户办理业务列表
    getbusinessList: (data) => {
        return axios({
            method: "get",
            url: `business/getAll`,
            params: {
                "pageNo": data.pageNo,
                "pageSize": data.pageSize,
                "userName": data.type
            }
        })
    },

    // 添加消息
    addMessage: (data) => {
        return axios({
            method: "post",
            url: "admin/add",
            data
        })
    },
}